package com.example.clxy.service;

import com.example.clxy.entity.Announcement;
import com.example.clxy.result.PageResult;
import com.example.clxy.result.WebRestResult;
import com.example.clxy.result.business.AnnouncementResult;
import com.example.clxy.result.business.PageResult.AnnouncementPageResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Hsieh
 * @title: AnnouncementService
 * @projectName clxy
 * @description: 通知/动态service接口
 * @date 2020/8/413:15
 */
public interface AnnouncementService {
    PageResult<AnnouncementPageResult> getAnnouncementList(String title, int page, int pagesize);

    PageResult<AnnouncementPageResult> getNewsList(String title, int page, int pagesize);

    AnnouncementResult getAnnouncementbyid(String announcementid);

    WebRestResult addAnnouncement(Announcement announcement);

    WebRestResult updateAnnouncement(Announcement announcement);

    WebRestResult deleteAnnouncement(String announcementid);

    WebRestResult uploadPhoto(MultipartFile file,String announcementid);
}
